package AbstractFactoryPattern;

public class PatternTest {
    public static void main(String[] args) {
        AbstractFacoty shapeFactory = FactoryProducer.getFactory("shape");
        AbstractFacoty colorFactory = FactoryProducer.getFactory("color");
        Shape circle = shapeFactory.getShape("circle");
        Shape rectangle = shapeFactory.getShape("rectangle");
        Color red = colorFactory.getColor("red");
        Color green = colorFactory.getColor("green");
        circle.draw();
        rectangle.draw();
        red.print();
        green.print();
    }
}